package com.itHuangTao.tank.components;

import javafx.geometry.Point2D;

//方向的枚举类
public enum Dir {

    UP(new Point2D(0,-1)),    //上
    DOWN(new Point2D(0,1)),   //下
    LEFT(new Point2D(-1,0)),  //左
    RIGHT(new Point2D(1,0));  //右

    private Point2D vector;//向量

    Dir(Point2D vector){
        this.vector=vector;
    }

    public Point2D getVector() {
        return vector;
    }
}
